import request from '@/utils/request'

// 查询customer_address列表
export function listAddress(query) {
  return request({
    url: '/business/address/list',
    method: 'get',
    params: query
  })
}

// 查询customer_address详细
export function getAddress(id) {
  return request({
    url: '/business/address/' + id,
    method: 'get'
  })
}

// 新增customer_address
export function addAddress(data) {
  return request({
    url: '/business/address',
    method: 'post',
    data: data
  })
}

// 修改customer_address
export function updateAddress(data) {
  return request({
    url: '/business/address',
    method: 'put',
    data: data
  })
}

// 删除customer_address
export function delAddress(id) {
  return request({
    url: '/business/address/' + id,
    method: 'delete'
  })
}

// 导出customer_address
export function exportAddress(query) {
  return request({
    url: '/business/address/export',
    method: 'get',
    params: query
  })
}